Platform Explorer / Nuxeo Platform 2023.11

Contribution org.nuxeo.ecm.platform.threed.convert.converters--converter

This contribution is part of XML component org.nuxeo.ecm.platform.threed.convert.converters inside nuxeo-platform-3d-2023.11.13.jar /OSGI-INF/convert-service-contrib.xml

Extension Point

Extension point converter of component ConversionServiceImpl.

Registration Order

3
The registration order represents the order in which this contribution was registered on its target extention point. This will impact the override/merge behaviour when it is implemented on the target service, and is useful for proper customization of existing contributions.
You can influence this order by adding "require" tags in the containing component declaration, to make sure it is resolved after another component (see "Resolution Order" on components).

Contributed Items

  • <converter class="org.nuxeo.ecm.platform.threed.convert.RenderConverter" name="render3D">
          <sourceMimeType>*</sourceMimeType>
          <destinationMimeType>image/png</destinationMimeType>
          <parameters>
            <parameter name="CommandLineName">blender_pipeline</parameter>
            <parameter name="scriptsDir">scripts</parameter>
            <parameter name="scriptFile">pipeline.py</parameter>
            <parameter name="operators">import info render</parameter>
            <parameter name="dimensions">800x600</parameter>
            <parameter name="coords">0,0</parameter>
          </parameters>
        </converter>
  • <converter class="org.nuxeo.ecm.platform.threed.convert.LodsConverter" name="lodConversion">
          <sourceMimeType>*</sourceMimeType>
          <destinationMimeType>model/vnd.collada+xml</destinationMimeType>
          <parameters>
            <parameter name="CommandLineName">blender_pipeline</parameter>
            <parameter name="scriptsDir">scripts</parameter>
            <parameter name="scriptFile">pipeline.py</parameter>
            <parameter name="operators">import info lod info convert lod info convert lod info convert</parameter>
            <parameter name="lodIds">33 11 03</parameter>
            <parameter name="percPoly">33 11 3</parameter>
            <parameter name="percTex">33 11 3</parameter>
            <parameter name="maxPoly">1000000 null null</parameter>
            <parameter name="maxTex">4000x4000 null null</parameter>
          </parameters>
        </converter>
  • <converter class="org.nuxeo.ecm.platform.threed.convert.ColladaConverter" name="colladaConversion">
          <sourceMimeType>*</sourceMimeType>
          <destinationMimeType>model/vnd.collada+xml</destinationMimeType>
          <parameters>
            <parameter name="CommandLineName">blender_pipeline</parameter>
            <parameter name="scriptsDir">scripts</parameter>
            <parameter name="scriptFile">pipeline.py</parameter>
            <parameter name="operators">import convert</parameter>
          </parameters>
        </converter>
  • <converter class="org.nuxeo.ecm.platform.threed.convert.BatchConverter" name="batchConversion">
          <sourceMimeType>*</sourceMimeType>
          <destinationMimeType>*</destinationMimeType>
          <parameters>
            <parameter name="CommandLineName">blender_pipeline</parameter>
            <parameter name="scriptsDir">scripts</parameter>
            <parameter name="scriptFile">pipeline.py</parameter>
            <parameter name="operators">import info render render lod info convert lod info convert lod info convert</parameter>
            <parameter name="lodIds">33 11 03</parameter>
            <parameter name="percPoly">33 11 3</parameter>
            <parameter name="percTex">33 11 3</parameter>
            <parameter name="maxPoly">1000000 null null</parameter>
            <parameter name="maxTex">4000x4000 null null</parameter>
            <parameter name="dimensions">800x600 800x600</parameter>
            <parameter name="coords">0,0 90,0</parameter>
          </parameters>
        </converter>
  • <converter class="org.nuxeo.ecm.platform.threed.convert.Collada2glTFConverter" name="dae2gltf">
          <sourceMimeType>*</sourceMimeType>
          <destinationMimeType>model/gltf+json</destinationMimeType>
          <parameters>
            <parameter name="CommandLineName">collada2gltlf</parameter>
          </parameters>
        </converter>

XML Source

<extension point="converter" target="org.nuxeo.ecm.core.convert.service.ConversionServiceImpl">
    <converter class="org.nuxeo.ecm.platform.threed.convert.RenderConverter" name="render3D">
      <sourceMimeType>*</sourceMimeType>
      <destinationMimeType>image/png</destinationMimeType>
      <parameters>
        <parameter name="CommandLineName">blender_pipeline</parameter>
        <parameter name="scriptsDir">scripts</parameter>
        <parameter name="scriptFile">pipeline.py</parameter>
        <parameter name="operators">import info render</parameter>
        <parameter name="dimensions">800x600</parameter>
        <parameter name="coords">0,0</parameter>
      </parameters>
    </converter>
    <converter class="org.nuxeo.ecm.platform.threed.convert.LodsConverter" name="lodConversion">
      <sourceMimeType>*</sourceMimeType>
      <destinationMimeType>model/vnd.collada+xml</destinationMimeType>
      <parameters>
        <parameter name="CommandLineName">blender_pipeline</parameter>
        <parameter name="scriptsDir">scripts</parameter>
        <parameter name="scriptFile">pipeline.py</parameter>
        <parameter name="operators">import info lod info convert lod info convert lod info convert</parameter>
        <parameter name="lodIds">33 11 03</parameter>
        <parameter name="percPoly">33 11 3</parameter>
        <parameter name="percTex">33 11 3</parameter>
        <parameter name="maxPoly">1000000 null null</parameter>
        <parameter name="maxTex">4000x4000 null null</parameter>
      </parameters>
    </converter>
    <converter class="org.nuxeo.ecm.platform.threed.convert.ColladaConverter" name="colladaConversion">
      <sourceMimeType>*</sourceMimeType>
      <destinationMimeType>model/vnd.collada+xml</destinationMimeType>
      <parameters>
        <parameter name="CommandLineName">blender_pipeline</parameter>
        <parameter name="scriptsDir">scripts</parameter>
        <parameter name="scriptFile">pipeline.py</parameter>
        <parameter name="operators">import convert</parameter>
      </parameters>
    </converter>
    <converter class="org.nuxeo.ecm.platform.threed.convert.BatchConverter" name="batchConversion">
      <sourceMimeType>*</sourceMimeType>
      <destinationMimeType>*</destinationMimeType>
      <parameters>
        <parameter name="CommandLineName">blender_pipeline</parameter>
        <parameter name="scriptsDir">scripts</parameter>
        <parameter name="scriptFile">pipeline.py</parameter>
        <parameter name="operators">import info render render lod info convert lod info convert lod info convert</parameter>
        <parameter name="lodIds">33 11 03</parameter>
        <parameter name="percPoly">33 11 3</parameter>
        <parameter name="percTex">33 11 3</parameter>
        <parameter name="maxPoly">1000000 null null</parameter>
        <parameter name="maxTex">4000x4000 null null</parameter>
        <parameter name="dimensions">800x600 800x600</parameter>
        <parameter name="coords">0,0 90,0</parameter>
      </parameters>
    </converter>
    <converter class="org.nuxeo.ecm.platform.threed.convert.Collada2glTFConverter" name="dae2gltf">
      <sourceMimeType>*</sourceMimeType>
      <destinationMimeType>model/gltf+json</destinationMimeType>
      <parameters>
        <parameter name="CommandLineName">collada2gltlf</parameter>
      </parameters>
    </converter>
  </extension>